package com.customer.crm.system.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author Lyp
 * @create 2021/12/16
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_system_role")
@Alias("systemRole")
public class SystemRole  implements Serializable {

    private  String id;

    @TableField(value = "createTime" , fill= FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "roleName")
    private String roleName;

    @TableField(value = "roleNote")
    private String roleNote;

    @TableField(value = "sortNum")
    private Integer sortNum;

    @TableLogic(value = "1" , delval ="0")
    private String status;

    @TableField(value = "updateTime" , fill= FieldFill.INSERT)
    private LocalDateTime updateTime;

    @TableField(value = "createBy")
    private String createBy;

    @TableField(value = "updateBy")
    private String updateBy;

    @TableField(exist = false)
    List<SystemFunction>  allFunction;



}
